package com.wn.StaticProxy;

public class HelloProxy {
    private Hello target;

    public void setTarget(Hello target) {
        this.target = target;
    }

    public  void sayHi(){
        System.out.println("before");
        target.sayHello();
        System.out.println("after");
    }
}
